package com.example.productdataserviceprovider.service.search;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;

public class Test {
    public static void main(String[] args) {
        String ymd="2015-8-27";
        DateTimeFormatter formatter=DateTimeFormatter.ofPattern("yyyy-MM-dd");
        String result=ymd.replaceAll("年|月","-");
//        LocalDate date=LocalDate.parse(ymd,formatter);
        String[] ymds=ymd.split("-");
        LocalDate pageYmd= LocalDate.of(Integer.valueOf(ymds[0]),Integer.valueOf(ymds[1]),Integer.valueOf(ymds[2]));
        System.out.println(pageYmd);
        HashMap<String,String> datas=null;
        StringBuilder builder;
    }
}
